package com.ruoyi.system.domain.module.event;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 计划任务：人员计划记录对象 event_plan_task
 *
 * @author ruoyi
 * @date 2023-12-25
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("event_plan_task")
public class EventPlanTask implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     *  所在物业id
     */
    private Integer propertyId;

    /**
     * 所在小区id
     */
    private Integer estateId;

	/**
	 *  任务类型
	 */
	private Integer eventType;

	/**
	 *  任务类型名称
	 */
	private String eventTypeName;


	/**
     * 计划id
     */
    private Integer eventPlanId;

    /**
     * 任务id
     */
    private Integer eventTargetId;

    /**
     * 执行人用户id
     */
    private Integer workerSysUserId;


    /**
     * 执行人 微信id
     */
    private Integer workerWxUserId;

	/**
	 * 执行人id
	 */
	private Long workId;



    /**
     * 任务执行状态
     */
    private Integer state;

	private Date handleTime;

    /**
     * 添加时间
     */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

	@Excel(name = "物业公司")
	@TableField(exist = false)
	private String propertyName;

	@Excel(name = "小区")
	@TableField(exist = false)
	private String estateName;

	@TableField(exist = false)
	private String userName;

	@Excel(name = "执行任务")
	@TableField(exist = false)
	private String groupName;

	@Excel(name = "任务名称")
	@TableField(exist = false)
	private String planName;

	/**
	 * 任务开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date beginTime;

	@Excel(name = "任务开始时间")
	@TableField(exist = false)
	private String beginTimes;

	/**
	 * 任务结束时间
	 */
	@Excel(name = "任务结束时间")
	@TableField(exist = false)
	private String endTimes;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endTime;

	/**
	 * 执行人姓名
	 */
	@Excel(name = "执行人姓名")
	private String workerName;

	/**
	 * 执行人手机号
	 */
	@Excel(name = "执行人手机号")
	private String workerPhone;

	private String taskBeginTime;

	private String taskEndTime;

}
